const { getCache, setCache } = require("../utils/cache_tool");
const { BaseCommand } = require("./base");

class WriteCacheCommand extends BaseCommand {
    async execute() {
        await setCache(
            this.selfData.cache_key,
            this.content,
            this.selfData.cache_type,
            this.selfData.cache_param,
        );
    }

    getRequireContent() {
        return true;
    }
}

module.exports = {
    WriteCacheCommand,
};
